def Print1ToMaxOfNDigits(n):
    if n<=0:
        return
    number = ['0'] * n
    while not Increment(number):
        PrintNumber(number)


def Increment(number):
    isOverflow  = False
    nTakeOver = 0
    nLength = len(number)
    for i in range(nLength-1,-1,-1):
        nSum = int(number[i]) + nTakeOver
        if i==nLength-1:
            nSum+=1

        if nSum >= 10:
            if i==0:
                isOverflow=True
            else:
                nSum -=10
                nTakeOver=1
                number[i] = str(nSum)
        else:
            number[i] = str(nSum)
            break

def PrintNumber(number):
    isBeginning0  = True
    nLength = len(number)
    for i in range(nLength):
        if isBeginning0 and number[i] != '0':
            isBeginning0 = False
        if not isBeginning0:
            print('%c' % number[i], end='')
    print('')

P=Print1ToMaxOfNDigits(3)
print(P)